package com.dule.Medic.model;

import java.util.List;
import org.apache.tapestry5.beaneditor.Validate;

public interface Patient 
{
	Long getId();
	
	public String getMedInsNo();
	@Validate(value="required,maxlength=15,minlength=4")
	public void setMedInsNo(String medInsNo);
	
	public String getFirstName();
	@Validate(value="required,maxlength=15,minlength=2")
	public void setFirstName(String firstName);
	
	public String getLastName();
	@Validate(value="required,maxlength=15,minlength=2")
	public void setLastName(String lastName);
	
	public String getAdress();
	@Validate(value="required")
	public void setAdress(String adress);
	
	public String getPhone();
	@Validate(value="required")
	public void setPhone(String phone);
	
	public String getEmail();
	@Validate(value="regexp,required")
	public void setEmail(String email);
	
	
	public List<MedEntry> getMedEntries();
	public void setMedEntries(List<MedEntry> medEntries);
	public MedEntry getMedEntryById(Long id);
	public boolean UpdateMedEntry(MedEntry medentry);
	public boolean RemoveMedEntry(MedEntry medentry);
	
}
